package com.z.sys.service.impl;

import java.util.List;
import java.util.ArrayList;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.z.common.web.vo.request.PageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.z.sys.mapper.DeptUserRoleMapper;
import com.z.sys.entity.DeptUserRole;
import com.z.sys.service.IDeptUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

import java.util.Arrays;
/**
 * 人员角色授权Service业务层处理
 *
 * @author z
 * @date 2023-03-01
 */
@Service
public class DeptUserRoleServiceImpl extends ServiceImpl<DeptUserRoleMapper,DeptUserRole> implements IDeptUserRoleService {


    /**
     * 查询人员角色授权
     * @param deptUserRole 人员角色授权
     * @param pageVo
     * @return 人员角色授权 分页集合
     * */
    @Override
    public PageInfo<DeptUserRole> selectDeptUserRolePage(DeptUserRole deptUserRole, PageVo pageVo) {
        PageHelper.startPage(pageVo.getPage(), pageVo.getLimit());
        List<DeptUserRole> data = baseMapper.selectDeptUserRoleList(deptUserRole);
        return new PageInfo<>(data);
    }

}
